package org.budo.phone.rongying;

import org.budo.phone.api.response.AgentOffWorkResponse;
import org.budo.phone.api.response.AgentOnWorkResponse;
import org.budo.phone.api.response.AgentServiceEndResponse;
import org.budo.phone.api.response.CreateQueueResponse;
import org.budo.phone.api.response.CreateSubAccountResponse;

import lombok.Getter;
import lombok.Setter;

/**
 * @author limingwei
 */
@Getter
@Setter
public class BudoRongyingPhoneApi extends AbstractRongyingPhoneApi {
    /**
     * POST /{SoftVersion}/accounts/subAccounts/v1?sig={$sig}
     */
    @Override
    public CreateSubAccountResponse createSubAccount(String appId, String name) {
        return super.createSubAccount(appId, name);
    }

    @Override
    public CreateQueueResponse createQueue(String appId, String queueType, String typeDes) {
        return super.createQueue(appId, queueType, typeDes);
    }

    /**
     * POST/bind/agentOnWork/v2?Sig={$sig}
     */
    @Override
    public AgentOnWorkResponse agentOnWork(String appId, String number, String agentId) {
        return super.agentOnWork(appId, number, agentId);
    }

    /**
     * POST /bind/agentOffWork/v2?Sig={$sig}
     */
    @Override
    public AgentOffWorkResponse agentOffWork(String appId, String number, String agentId, String agentType) {
        return super.agentOffWork(appId, number, agentId, agentType);
    }

    /**
     * POST /bind/hangup/v2?Sig={$sig}
     */
    @Override
    public AgentServiceEndResponse agentServiceEnd(String appId, String callId, String agentId) {
        return super.agentServiceEnd(appId, callId, agentId);
    }
}